Video URL: https://youtu.be/vfsVdaEZJAs?list=PL71FakzkAfYuB50M4TDamUBJD0H_rbsFy
We can use
historycommand
to show the history of commands entered in the terminal, and if the previous user didn't clear commands history we can see it.

We can see here in the history that the user wanted to switch to root user and entered the password “chicken ”
We can clear the history with:
- $ history -c
- $ rm /home/kali/bash_history
Other method is that sometimes we can find the #ssh key on the system, then we can use it to connect to the root user
$ ssh root@192.168.100.15 -i <key>